how to write ionic and molecular covalent chemical formulas - chemistry